<?php
$config_module = "{$_SERVER["DOCUMENT_ROOT"]}/modules/config/index.php";
$data_module = "{$_SERVER["DOCUMENT_ROOT"]}/modules/menu/data.php";

include "$config_module";
include "$data_module";

$menu_name = $_REQUEST["menu_name"];


echo "<div id=menu_label>{$menu[$menu_name]["text"]}</div>";

foreach ($menu[$menu_name]["items"] as  $menu_data) {
 echo<<<STOP
 <fieldset id={$menu_data["section"]} onclick="show_navmenu_edit(this.id)">
 <legend>{$menu_data["section"]}</legend>
 <input type="text" value="{$menu_data["text"]}">
 <input type="text" value="{$menu_data["url"]}">
 </fieldset>
STOP;
}


?>